package com.CmJava.bean;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class BeanDefinition {

    private String beanName;
    private String beanClassName;
    private Class beanClass;
    private String scope;
    private boolean isLazy;
    private Map<Method,Class> pointCut;

    public BeanDefinition() {
    }

    public BeanDefinition(String beanName,String beanClassName, Class beanClass, String scope, boolean isLazy) {
        this.beanName = beanName;
        this.beanClassName = beanClassName;
        this.beanClass = beanClass;
        this.scope = scope;
        this.isLazy = isLazy;
        this.pointCut =new ConcurrentHashMap<>();
    }

    public Map<Method, Class> getPointCut() {
        return pointCut;
    }

    public void setPointCut(Map<Method, Class> pointCut) {
        this.pointCut = pointCut;
    }

    public String getBeanClassName() {
        return beanClassName;
    }

    public void setBeanClassName(String beanClassName) {
        this.beanClassName = beanClassName;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }
}
